//
//  Contact.m
//  17-Homework
//
//  Created by dllo on 16/8/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Contact.h"

@implementation Contact

- (instancetype)initWithName:(NSString *)name imagePath:(NSString *)imagePath address:(NSString *)address
                   telNumber:(NSInteger)telNumber;
 {
    self = [super init];
    if (self) {
        _name = name;
        _imagePath = imagePath;
        _address = address;
        _telNumber = telNumber;
    }
    return self;
}

+ (instancetype)contactWithName:(NSString *)name imagePath:(NSString *)imagePath address:(NSString *)address telNumber:(NSInteger)telNumber {
    return [[Contact alloc] initWithName:name imagePath:imagePath address:address telNumber:telNumber];
}
@end
